import { createRouter, createWebHistory } from 'vue-router'

/* ---- */
const forRoutes = [{
  path: '/',
  name: 'ForProject',
  component: () => import('@/views/forproject.vue'),
  children: [{
    path: '',
    name: 'ForCenter',
    component: () => import('@/views/Ucenter/forcenter.vue'),
    children: [{
      path: '',
      name: 'UcenTer',
      component: () => import('@/views/Ucenter/ucenter.vue'),
      meta: { index: 1, title: '', power: true }
    },
    // --我的信息--
    {
      path: 'forinfo',
      name: 'ForInfo',
      component: () => import('@/views/Ucenter/Info/forinfo.vue'),
      meta: { index: 2, title: '我的信息', power: true, tabs: true }
    }, {
      path: 'infoadm',
      name: 'InfoAdm',
      component: () => import('@/views/Ucenter/Info/infoadm.vue'),
      meta: { index: 100, title: '商务信息', power: true }
    },
    // ----
    {
      path: 'wechatadm',
      name: 'WechatAdm',
      component: () => import('@/views/Ucenter/Info/wechatadm.vue'),
      meta: { index: 3, title: '在线客服', power: true, tabs: true }
    },
    // --订单订购--
    {
      path: 'fororderother',
      name: 'ForOrderOther',
      component: () => import('@/views/Ucenter/Order/fororderother.vue'),
      meta: { index: 2, title: '客户订单', power: true, tabs: true }
    }, {
      path: 'shoporderother',
      name: 'ShopOrderOther',
      component: () => import('@/views/Ucenter/Order/Other/shoporderother.vue'),
      meta: { index: 3, title: '门店订单', power: true, tabs: true }
    }, {
      path: 'cloudorderother',
      name: 'CloudOrderOther',
      component: () => import('@/views/Ucenter/Order/Other/cloudorderother.vue'),
      meta: { index: 3, title: '云仓订单', power: true, tabs: true }
    }, {
      path: 'fororderself',
      name: 'ForOrderSelf',
      component: () => import('@/views/Ucenter/Order/fororderself.vue'),
      meta: { index: 2, title: '我的订购', power: true, tabs: true }
    }, {
      path: 'wholeorderself',
      name: 'WholeOrderSelf',
      component: () => import('@/views/Ucenter/Order/Self/wholeorderself.vue'),
      meta: { index: 3, title: '批发订购', power: true, tabs: true }
    }, {
      path: 'cloudorderself',
      name: 'CloudOrderSelf',
      component: () => import('@/views/Ucenter/Order/Self/cloudorderself.vue'),
      meta: { index: 3, title: '云仓订购', power: true, tabs: true }
    },
    // --收货地址--
    {
      path: 'addresslist',
      name: 'AddressList',
      component: () => import('@/views/Ucenter/Order/Addr/addresslist.vue'),
      meta: { index: 3, title: '收货地址', power: true, tabs: true }
    }, {
      path: 'addressadm',
      name: 'AddressAdm',
      component: () => import('@/views/Ucenter/Order/Addr/addressadm.vue'),
      meta: { index: 4, title: '新增／修改收货地址', power: true, tabs: true }
    },
    // --婚介交友（在线报名）--
    {
      path: 'marryreg',
      name: 'MarryReg',
      component: () => import('@/views/Ucenter/Set/Marry/marryreg.vue'),
      meta: { index: 200, title: '婚介交友', power: true, tabs: true }
    },
    // --招商招聘（展示篇）--
    {
      path: 'capital',
      name: 'CapitalShare',
      component: () => import('@/views/Capital/capitalshare.vue'),
      meta: { index: 200, title: '', power: false }
    }, {
      path: 'capitaluserreg',
      name: 'CapitalUserReg',
      component: () => import('@/views/Capital/capitaluserreg.vue'),
      meta: { index: 210, title: '万众焊接材料经销合作登记表', power: true }
    }, {
      path: 'capitalcompanyreg',
      name: 'CapitalCompanyReg',
      component: () => import('@/views/Capital/capitalcompanyreg.vue'),
      meta: { index: 220, title: '新增服务团队', power: true }
    },
    // ----
    {
      path: 'telphone',
      name: 'TelphoneAdm',
      component: () => import('@/views/Ucenter/Info/Phone/telphoneadm.vue'),
      meta: { index: 3, title: '修改手机', power: true, tabs: true }
    }, {
      path: 'telphone',
      name: 'TelphoneAdmNext',
      component: () => import('@/views/Ucenter/Info/Phone/telphoneadmnext.vue'),
      meta: { index: 4, title: '修改手机', power: true, tabs: true }
    },
    // --交费记录--
    {
      path: 'forpayrecord',
      name: 'ForPayRecord',
      component: () => import('@/views/Ucenter/Info/Payrecord/forpayrecord.vue'),
      meta: { index: 3, title: '交费记录', power: true, tabs: true }
    }, {
      path: 'payrecord',
      name: 'PayRecord',
      component: () => import('@/views/Ucenter/Info/Payrecord/payrecord.vue'),
      meta: { index: 4, title: '交费记录', power: true, tabs: true }
    },
    // --万域商友（展示篇）--
    {
      path: 'friend',
      name: 'FriendShare',
      component: () => import('@/views/Friend/friendshare.vue'),
      meta: { index: 200, title: '', power: true, shop: true }
    },
    // --发现商机--
    {
      path: 'opport',
      name: 'OpportShare',
      component: () => import('@/views/Opport/opportshare.vue'),
      meta: { index: 2, title: '', power: true, shop: true, tabs: true }
    }, {
      path: 'selfopport',
      name: 'SelfOpport',
      component: () => import('@/views/Opport/uself/selfopport.vue'),
      meta: { index: 3, title: '我的商机', power: true, shop: true, tabs: true }
    }, {
      path: 'selfopportadm',
      name: 'SelfOpportAdm',
      component: () => import('@/views/Opport/uself/selfopportadm.vue'),
      meta: { index: 4, title: '新增／修改我的商机', power: true, shop: true, tabs: true }
    },
    // --赞助推广（展示篇）--
    {
      path: 'sponsor',
      name: 'SponsorShare',
      component: () => import('@/views/Sponsor/sponsorshare.vue'),
      meta: { index: 200, title: '', power: true, shop: true, tabs: true }
    }, {
      path: 'sponsorinfo',
      name: 'SponsorInfo',
      component: () => import('@/views/Sponsor/sponsorinfo.vue'),
      meta: { index: 210, title: '我的赞助信息', power: true, shop: true }
    },
    // --管理移动门店--
    {
      path: 'forstore',
      name: 'ForStore',
      component: () => import('@/views/Ucenter/Store/forstore.vue'),
      meta: { index: 2, title: '管理移动门店', power: true, shop: true }
    }, {
      path: 'storewords',
      name: 'StoreWords',
      component: () => import('@/views/Ucenter/Store/Yunshop/storewords.vue'),
      meta: { index: 4, title: '门店名称', power: true, shop: true, tabs: true }
    }, {
      path: 'storeavatar',
      name: 'StoreAvatar',
      component: () => import('@/views/Ucenter/Store/Yunshop/storeavatar.vue'),
      meta: { index: 4, title: '门店标牌', power: true, shop: true, tabs: true }
    }, {
      path: 'goodsunit',
      name: 'GoodsUnit',
      component: () => import('@/views/Ucenter/Store/Goods/goodsunit.vue'),
      meta: { index: 4, title: '计量单位', power: true, shop: true, tabs: true }
    }, {
      path: 'goodscate',
      name: 'GoodsCate',
      component: () => import('@/views/Ucenter/Store/Goods/goodscate.vue'),
      meta: { index: 4, title: '商品分类', power: true, shop: true, tabs: true }
    }, {
      path: 'goodscateadm',
      name: 'GoodsCateAdm',
      component: () => import('@/views/Ucenter/Store/Goods/goodscateadm.vue'),
      meta: { index: 5, title: '新增／修改商品分类', power: true, shop: true, tabs: true }
    }, {
      path: 'goodscateson',
      name: 'GoodsCateSon',
      component: () => import('@/views/Ucenter/Store/Goods/goodscateson.vue'),
      meta: { index: 5, title: '', power: true, shop: true, tabs: true }
    }, {
      path: 'goodslist',
      name: 'GoodsList',
      component: () => import('@/views/Ucenter/Store/Goods/goodslist.vue'),
      meta: { index: 4, title: '管理我的移动门店商品', power: true, shop: true, tabs: true }
    }, {
      path: 'goodsadm',
      name: 'GoodsAdm',
      component: () => import('@/views/Ucenter/Store/Goods/goodsadm.vue'),
      meta: { index: 5, title: '新增／修改门店商品', power: true, shop: true, tabs: true }
    }, {
      path: 'storebannerlist',
      name: 'StoreBannerList',
      component: () => import('@/views/Ucenter/Store/Yunshop/storebannerlist.vue'),
      meta: { index: 4, title: '顶部广告', power: true, shop: true, tabs: true }
    }, {
      path: 'storebanneradm',
      name: 'StoreBannerAdm',
      component: () => import('@/views/Ucenter/Store/Yunshop/storebanneradm.vue'),
      meta: { index: 5, title: '顶部广告', power: true, shop: true, tabs: true }
    }, {
      path: 'goodsqrcode',
      name: 'GoodsQrCode',
      component: () => import('@/views/Ucenter/Store/goodsqrcode.vue'),
      meta: { index: 200, title: '', power: true, shop: true }
    },
    // --批发市场--
    {
      path: 'wholesale',
      name: 'WholeSale',
      component: () => import('@/views/Ucenter/Whole/wholesale.vue'),
      meta: { index: 3, title: '批发市场', power: true, shop: true, tabs: true }
    },
    // --云仓进销（展示篇）--
    {
      path: 'cloudshare',
      name: 'CloudShare',
      component: () => import('@/views/Ucenter/Cloud/cloudshare.vue'),
      meta: { index: 2, title: '欢迎来到万域云仓', power: true, shop: true, tabs: true }
    },
    // --云仓进销（管理篇）--
    {
      path: 'forcloud',
      name: 'ForCloud',
      component: () => import('@/views/Ucenter/Cloud/admin/forcloud.vue'),
      meta: { index: 3, title: '管理我的云仓', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudcate',
      name: 'CloudCate',
      component: () => import('@/views/Ucenter/Cloud/admin/cloudcate.vue'),
      meta: { index: 4, title: '云仓商品分类', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudcateson',
      name: 'CloudCateSon',
      component: () => import('@/views/Ucenter/Cloud/admin/cloudcateson.vue'),
      meta: { index: 5, title: '', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudunit',
      name: 'CloudUnit',
      component: () => import('@/views/Ucenter/Cloud/admin/cloudunit.vue'),
      meta: { index: 4, title: '云仓商品计量单位', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudpdtlist',
      name: 'CloudPdtList',
      component: () => import('@/views/Ucenter/Cloud/admin/cloudpdtlist.vue'),
      meta: { index: 4, title: '管理云仓商品', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudpdtadm',
      name: 'CloudPdtAdm',
      component: () => import('@/views/Ucenter/Cloud/admin/cloudpdtadm.vue'),
      meta: { index: 5, title: '新增／修改云仓商品', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudfriend',
      name: 'CloudFriend',
      component: () => import('@/views/Ucenter/Cloud/admin/cloudfriend.vue'),
      meta: { index: 4, title: '分销商友', power: true, shop: true, tabs: true }
    },
    // --推广销售--
    {
      path: 'promotesys',
      name: 'PromoteSys',
      component: () => import('@/views/Promote/promotesys.vue'),
      meta: { index: 2, title: '推广销售', power: true, func: true, tabs: true }
    }, {
      path: 'promotesyslist',
      name: 'PromoteSysList',
      component: () => import('@/views/Promote/promotesyslist.vue'),
      meta: { index: 3, title: '', power: true, func: true, tabs: true }
    }, {
      path: 'promoteshare',
      name: 'PromoteShare',
      component: () => import('@/views/Promote/promoteshare.vue'),
      meta: { index: 200, title: '', power: false }
    },
    // --客户列表--
    {
      path: 'promotereg',
      name: 'PromoteReg',
      component: () => import('@/views/Promote/promotereg.vue'),
      meta: { index: 2, title: '客户列表', power: true, func: true, tabs: true }
    },
    // --佣金提现--
    {
      path: 'commission',
      name: 'ForCommission',
      component: () => import('@/views/Ucenter/Commission/forcommission.vue'),
      meta: { index: 2, title: '佣金提现', power: true, func: true, tabs: true }
    }, {
      path: 'getcommission',
      name: 'GetCommission',
      component: () => import('@/views/Ucenter/Commission/getcommission.vue'),
      meta: { index: 3, title: '', power: true, func: true, tabs: true }
    },
    /* --定制功能-- */
    // --材质书系统--
    {
      path: 'formaterial',
      name: 'ForMaterial',
      component: () => import('@/views/Material/admin/formaterial.vue'),
      meta: { index: 2, title: '材质书系统', power: true, material: true, tabs: true }
    }, {
      path: 'materialadm',
      name: 'MaterialAdm',
      component: () => import('@/views/Material/admin/materialadm.vue'),
      meta: { index: 3, title: '表格设置', power: true, material: true, tabs: true }
    }, {
      path: 'materialgoods',
      name: 'MaterialGoods',
      component: () => import('@/views/Material/admin/materialgoods.vue'),
      meta: { index: 3, title: '添加管理', power: true, material: true, tabs: true }
    }, {
      path: 'materialgoodsadm',
      name: 'MaterialGoodsAdm',
      component: () => import('@/views/Material/admin/materialgoodsadm.vue'),
      meta: { index: 4, title: '新增／修改材质书产品', power: true, material: true, tabs: true }
    }, {
      path: 'materialshare',
      name: 'MaterialShare',
      component: () => import('@/views/Material/materialshare.vue'),
      meta: { index: 200, title: '材质书', power: false }
    }, {
      path: 'selfmaterial',
      name: 'SelfMaterial',
      component: () => import('@/views/Material/selfmaterial.vue'),
      meta: { index: 210, title: '我的材质书', power: true }
    }, {
      path: 'materialview',
      name: 'MaterialView',
      component: () => import('@/views/Material/materialview.vue'),
      meta: { index: 210, title: '', power: false }
    }, {
      path: 'materialcreate',
      name: 'MaterialCreate',
      component: () => import('@/views/Material/materialcreate.vue'),
      meta: { index: 220, title: '请输入规格、批号，日期', power: true }
    }, {
      path: 'materialdown',
      name: 'MaterialDown',
      component: () => import('@/views/Material/materialdown.vue'),
      meta: { index: 300, title: '材质书', power: false }
    },
    // --营销图册--
    {
      path: 'albumlist',
      name: 'AlbumList',
      component: () => import('@/views/Album/admin/albumlist.vue'),
      meta: { index: 2, title: '微信营销图册系统', power: true, album: true, tabs: true }
    }, {
      path: 'albumadm',
      name: 'AlbumAdm',
      component: () => import('@/views/Album/admin/albumadm.vue'),
      meta: { index: 3, title: '新增／修改微信营销图册系统', power: true, album: true, tabs: true }
    }, {
      path: 'albumcustomer',
      name: 'AlbumCustomer',
      component: () => import('@/views/Album/admin/albumcustomer.vue'),
      meta: { index: 3, title: '营销图册客服', power: true, album: true, tabs: true }
    }, {
      path: 'albumqrcode',
      name: 'AlbumQrCode',
      component: () => import('@/views/Album/albumqrcode.vue'),
      meta: { index: 3, title: '营销图册二维码', power: true, album: true }
    }, {
      path: 'albumshare',
      name: 'AlbumShare',
      component: () => import('@/views/Album/albumshare.vue'),
      meta: { index: 200, title: '', power: false }
    },
    // --行业精英--
    {
      path: 'wholeusers',
      name: 'WholeUserShare',
      component: () => import('@/views/Ucenter/Whole/wholeusershare.vue'),
      meta: { index: 200, title: '', power: true, wholesaler: true, tabs: true }
    },
    // --订购合同--
    {
      path: 'contractlist',
      name: 'ContractList',
      component: () => import('@/views/Contract/admin/contractlist.vue'),
      meta: { index: 2, title: '订购合同', power: true, contract: true, tabs: true }
    }, {
      path: 'forcontract',
      name: 'ForContract',
      component: () => import('@/views/Contract/admin/forcontract.vue'),
      meta: { index: 3, title: '默认设置', power: true, contract: true, tabs: true }
    }, {
      path: 'contractadm',
      name: 'ContractAdm',
      component: () => import('@/views/Contract/admin/contractadm.vue'),
      meta: { index: 4, title: '分享设置', power: true, contract: true, tabs: true }
    }, {
      path: 'contractgoodstype',
      name: 'ContractGoodsType',
      component: () => import('@/views/Contract/admin/contractgoodstype.vue'),
      meta: { index: 4, title: '商品型号', power: true, contract: true, tabs: true }
    }, {
      path: 'contractgoodssize',
      name: 'ContractGoodsSize',
      component: () => import('@/views/Contract/admin/contractgoodssize.vue'),
      meta: { index: 4, title: '商品规格', power: true, contract: true, tabs: true }
    }, {
      path: 'contractgoodsunit',
      name: 'ContractGoodsUnit',
      component: () => import('@/views/Contract/admin/contractgoodsunit.vue'),
      meta: { index: 4, title: '计量单位', power: true, contract: true, tabs: true }
    }, {
      path: 'contractlistadm',
      name: 'ContractListAdm',
      component: () => import('@/views/Contract/admin/contractlistadm.vue'),
      meta: { index: 3, title: '新增／修改合同', power: true, contract: true, tabs: true }
    }, {
      path: 'contractshare',
      name: 'ContractShare',
      component: () => import('@/views/Contract/contractshare.vue'),
      meta: { index: 200, title: '销售合同', power: false }
    },
    /* --总管理员功能-- */
    // --系统设置--
    {
      path: 'forset',
      name: 'ForSet',
      component: () => import('@/views/Ucenter/Set/forset.vue'),
      meta: { index: 3, title: '系统管理', power: true, admin: true }
    },
    // --合作商家--
    {
      path: 'forpromote',
      name: 'ForPromote',
      component: () => import('@/views/Promote/admin/forpromote.vue'),
      meta: { index: 4, title: '合作商家', power: true, admin: true }
    }, {
      path: 'promoteword',
      name: 'PromoteWord',
      component: () => import('@/views/Promote/admin/promoteword.vue'),
      meta: { index: 5, title: '文字广告', power: true, admin: true }
    }, {
      path: 'promotecate',
      name: 'PromoteCate',
      component: () => import('@/views/Promote/admin/promotecate.vue'),
      meta: { index: 5, title: '管理商家', power: true, admin: true }
    }, {
      path: 'promotecateadm',
      name: 'PromoteCateAdm',
      component: () => import('@/views/Promote/admin/promotecateadm.vue'),
      meta: { index: 6, title: '新增／修改商家', power: true, admin: true }
    }, {
      path: 'promotelist',
      name: 'PromoteList',
      component: () => import('@/views/Promote/admin/promotelist.vue'),
      meta: { index: 6, title: '', power: true, admin: true }
    }, {
      path: 'promotelistadm',
      name: 'PromoteListAdm',
      component: () => import('@/views/Promote/admin/promotelistadm.vue'),
      meta: { index: 7, title: '新增／修改海报', power: true, admin: true }
    }, {
      path: 'promotedescadm',
      name: 'PromoteDescAdm',
      component: () => import('@/views/Promote/admin/promotedescadm.vue'),
      meta: { index: 7, title: '推广佣金', power: true, admin: true }
    },
    // --招商招聘（管理篇）--
    {
      path: 'forcapital',
      name: 'ForCapital',
      component: () => import('@/views/Capital/admin/forcapital.vue'),
      meta: { index: 4, title: '万众招商系统设置', power: true, admin: true }
    }, {
      path: 'capitaladm',
      name: 'CapitalAdm',
      component: () => import('@/views/Capital/admin/capitaladm.vue'),
      meta: { index: 5, title: '分享设置', power: true, admin: true }
    }, {
      path: 'capitalattrib',
      name: 'CapitalAttrib',
      component: () => import('@/views/Capital/admin/capitalattrib.vue'),
      meta: { index: 5, title: '合作意向', power: true, admin: true }
    }, {
      path: 'capitallist',
      name: 'CapitalList',
      component: () => import('@/views/Capital/admin/capitallist.vue'),
      meta: { index: 5, title: '信息管理', power: true, admin: true }
    },
    {
      path: 'serveYouList',
      name: 'ServeYouList',
      component: () => import('@/views/Capital/admin/serveYouList.vue'),
      meta: { index: 6, title: '为你服务', power: true, admin: true }
    },
    // --发现商机（管理篇）--
    {
      path: 'foropport',
      name: 'ForOpport',
      component: () => import('@/views/Opport/admin/foropport.vue'),
      meta: { index: 4, title: '发现商机', power: true, admin: true }
    }, {
      path: 'opportadm',
      name: 'OpportAdm',
      component: () => import('@/views/Opport/admin/opportadm.vue'),
      meta: { index: 5, title: '分享设置', power: true, admin: true }
    }, {
      path: 'opportcate',
      name: 'OpportCate',
      component: () => import('@/views/Opport/admin/opportcate.vue'),
      meta: { index: 5, title: '商机分类', power: true, admin: true }
    }, {
      path: 'opportlist',
      name: 'OpportList',
      component: () => import('@/views/Opport/admin/opportlist.vue'),
      meta: { index: 5, title: '管理商机', power: true, admin: true }
    },
    // --发放佣金--
    {
      path: 'forwagesent',
      name: 'ForWageSent',
      component: () => import('@/views/Ucenter/Set/Cash/forwagesent.vue'),
      meta: { index: 4, title: '发放佣金', power: true, admin: true }
    }, {
      path: 'wagesent',
      name: 'WageSent',
      component: () => import('@/views/Ucenter/Set/Cash/wagesent.vue'),
      meta: { index: 5, title: '', power: true, admin: true }
    },
    // ----
    {
      path: 'clubservice',
      name: 'ClubService',
      component: () => import('@/views/Ucenter/Set/clubservice.vue'),
      meta: { index: 4, title: '系统默认', power: true, admin: true }
    }, {
      path: 'classtag',
      name: 'ClassTag',
      component: () => import('@/views/Ucenter/Set/classtag.vue'),
      meta: { index: 4, title: '行业标签', power: true, admin: true }
    }, {
      path: 'globalpass',
      name: 'GlobalPass',
      component: () => import('@/views/Ucenter/Set/globalpass.vue'),
      meta: { index: 4, title: '通用密码', power: true, admin: true }
    }, {
      path: 'sysadvlist',
      name: 'SysAdvList',
      component: () => import('@/views/Ucenter/Set/Advs/sysadvlist.vue'),
      meta: { index: 4, title: '系统广告', power: true, admin: true }
    }, {
      path: 'sysadvadm',
      name: 'SysAdvAdm',
      component: () => import('@/views/Ucenter/Set/Advs/sysadvadm.vue'),
      meta: { index: 5, title: '新增／修改系统广告', power: true, admin: true }
    }, {
      path: 'busiattrib',
      name: 'BusiAttrib',
      component: () => import('@/views/Ucenter/Set/busiattrib.vue'),
      meta: { index: 4, title: '商友属性', power: true, admin: true }
    }, {
      path: 'wageratioresult',
      name: 'WageRatioResult',
      component: () => import('@/views/Ucenter/Set/Cash/wageratioresult.vue'),
      meta: { index: 4, title: '佣金比例', power: true, admin: true }
    }, {
      path: 'wagewithdrawal',
      name: 'WageWithDrawal',
      component: () => import('@/views/Ucenter/Set/Cash/wagewithdrawal.vue'),
      meta: { index: 4, title: '提现设置', power: true, admin: true }
    },
    // --服务团队（管理篇）--
    {
      path: 'fortermadm',
      name: 'ForTermAdm',
      component: () => import('@/views/Term/admin/fortermadm.vue'),
      meta: { index: 4, title: '服务团队', power: true, admin: true }
    }, {
      path: 'termadm',
      name: 'TermAdm',
      component: () => import('@/views/Term/admin/termadm.vue'),
      meta: { index: 5, title: '分享设置', power: true, admin: true }
    }, {
      path: 'termimgs',
      name: 'TermImgs',
      component: () => import('@/views/Term/admin/termimgs.vue'),
      meta: { index: 5, title: '顶部图片', power: true, admin: true }
    }, {
      path: 'termimgsadm',
      name: 'TermImgsAdm',
      component: () => import('@/views/Term/admin/termimgsadm.vue'),
      meta: { index: 6, title: '新增／修改顶部图片', power: true, admin: true }
    }, {
      path: 'termadvs',
      name: 'TermAdvs',
      component: () => import('@/views/Term/admin/termadvs.vue'),
      meta: { index: 5, title: '详情图片', power: true, admin: true }
    }, {
      path: 'termadvsadm',
      name: 'TermAdvsAdm',
      component: () => import('@/views/Term/admin/termadvsadm.vue'),
      meta: { index: 6, title: '新增／修改详情图片', power: true, admin: true }
    }, {
      path: 'term',
      name: 'TermShare',
      component: () => import('@/views/Term/termshare.vue'),
      meta: { index: 200, title: '', power: false }
    },
    // --无数据提示--
    {
      path: 'datalist',
      name: 'DataList',
      component: () => import('@/views/Ucenter/Set/Nodata/datalist.vue'),
      meta: { index: 4, title: '无数据提示', power: true, admin: true }
    }, {
      path: 'dataadm',
      name: 'DataAdm',
      component: () => import('@/views/Ucenter/Set/Nodata/dataadm.vue'),
      meta: { index: 5, title: '新增／修改无数据提示', power: true, admin: true }
    },
    // --合作意向--
    {
      path: 'intendlist',
      name: 'IntendList',
      component: () => import('@/views/Ucenter/Set/Intend/intendlist.vue'),
      meta: { index: 4, title: '合作意向', power: true, admin: true }
    }, {
      path: 'intendadm',
      name: 'IntendAdm',
      component: () => import('@/views/Ucenter/Set/Intend/intendadm.vue'),
      meta: { index: 5, title: '新增／修改合作意向', power: true, admin: true }
    },
    // --充值金额--
    {
      path: 'wagepay',
      name: 'WagePay',
      component: () => import('@/views/Ucenter/Set/Cash/wagepay.vue'),
      meta: { index: 4, title: '充值金额', power: true, admin: true }
    }, {
      path: 'wagepayadm',
      name: 'WagePayAdm',
      component: () => import('@/views/Ucenter/Set/Cash/wagepayadm.vue'),
      meta: { index: 5, title: '增加／修改充值项目', power: true, admin: true }
    }, {
      path: 'wagepayreglist',
      name: 'WagePayRegList',
      component: () => import('@/views/Ucenter/Set/Cash/wagepayreglist.vue'),
      meta: { index: 5, title: '', power: true, admin: true }
    },
    // --关注链接--
    {
      path: 'focuslink',
      name: 'FocusLink',
      component: () => import('@/views/Ucenter/Set/focuslink.vue'),
      meta: { index: 4, title: '关注链接', power: true, admin: true }
    },
    // --赞助推广（管理篇）--
    {
      path: 'forsponsor',
      name: 'ForSponsor',
      component: () => import('@/views/Sponsor/admin/forsponsor.vue'),
      meta: { index: 4, title: '赞助推广', power: true, admin: true }
    }, {
      path: 'sponsoradm',
      name: 'SponsorAdm',
      component: () => import('@/views/Sponsor/admin/sponsoradm.vue'),
      meta: { index: 5, title: '分享设置', power: true, admin: true }
    }, {
      path: 'sponsorcolumn',
      name: 'SponsorColumn',
      component: () => import('@/views/Sponsor/admin/sponsorcolumn.vue'),
      meta: { index: 5, title: '栏目名称', power: true, admin: true }
    }, {
      path: 'sponsorlist',
      name: 'SponsorList',
      component: () => import('@/views/Sponsor/admin/sponsorlist.vue'),
      meta: { index: 5, title: '赞助单位', power: true, admin: true }
    },
    // --背景音乐--
    {
      path: 'musiclist',
      name: 'MusicList',
      component: () => import('@/views/Ucenter/Set/Music/musiclist.vue'),
      meta: { index: 4, title: '背景音乐', power: true, admin: true }
    }, {
      path: 'musicadm',
      name: 'MusicAdm',
      component: () => import('@/views/Ucenter/Set/Music/musicadm.vue'),
      meta: { index: 5, title: '新增／修改背景音乐', power: true, admin: true }
    },
    // --定制功能--
    {
      path: 'forcustomfunc',
      name: 'ForCustomFunc',
      component: () => import('@/views/Ucenter/Set/Customfunc/forcustomfunc.vue'),
      meta: { index: 4, title: '定制系统', power: true, admin: true }
    }, {
      path: 'customfuncuser',
      name: 'CustomFuncUser',
      component: () => import('@/views/Ucenter/Set/Customfunc/customfuncuser.vue'),
      meta: { index: 5, title: '用户管理', power: true, admin: true }
    },
    // --会员管理--
    {
      path: 'forsystemuser',
      name: 'ForSystemUser',
      component: () => import('@/views/Ucenter/Set/Systemuser/forsystemuser.vue'),
      meta: { index: 4, title: '会员管理', power: true, admin: true }
    }, {
      path: 'systemuserlist',
      name: 'SystemUserList',
      component: () => import('@/views/Ucenter/Set/Systemuser/systemuserlist.vue'),
      meta: { index: 5, title: '', power: true, admin: true }
    },
    // --万域商友（管理篇）--
    {
      path: 'forfriend',
      name: 'ForFriend',
      component: () => import('@/views/Friend/admin/forfriend.vue'),
      meta: { index: 4, title: '万域商友', power: true, admin: true }
    }, {
      path: 'friendadm',
      name: 'FriendAdm',
      component: () => import('@/views/Friend/admin/friendadm.vue'),
      meta: { index: 5, title: '分享设置', power: true, admin: true }
    }, {
      path: 'floatadv',
      name: 'FloatAdv',
      component: () => import('@/views/Friend/admin/floatadv.vue'),
      meta: { index: 5, title: '漂浮广告', power: true, admin: true }
    },
    // --婚介交友（管理篇）--
    {
      path: 'formarry',
      name: 'ForMarry',
      component: () => import('@/views/Ucenter/Set/Marry/admin/formarry.vue'),
      meta: { index: 4, title: '婚介交友', power: true, admin: true }
    }, {
      path: 'marryattrib',
      name: 'MarryAttrib',
      component: () => import('@/views/Ucenter/Set/Marry/admin/marryattrib.vue'),
      meta: { index: 5, title: '交友属性', power: true, admin: true }
    }, {
      path: 'marrylist',
      name: 'MarryList',
      component: () => import('@/views/Ucenter/Set/Marry/admin/marrylist.vue'),
      meta: { index: 5, title: '管理交友', power: true, admin: true }
    },
    // --我们在哪--
    {
      path: 'forofficeadm',
      name: 'ForOfficeAdm',
      component: () => import('@/views/Office/admin/forofficeadm.vue'),
      meta: { index: 4, title: '我们在哪', power: true, admin: true }
    }, {
      path: 'officeadm',
      name: 'OfficeAdm',
      component: () => import('@/views/Office/admin/officeadm.vue'),
      meta: { index: 5, title: '分享设置', power: true, admin: true }
    }, {
      path: 'officeList',
      name: 'OfficeList',
      component: () => import('@/views/Office/admin/officelist.vue'),
      meta: { index: 5, title: '地方服务', power: true, admin: true }
    }, {
      path: 'officelistadm',
      name: 'OfficeListAdm',
      component: () => import('@/views/Office/admin/officelistadm.vue'),
      meta: { index: 6, title: '新增／修改地方服务', power: true, admin: true }
    }, {
      path: 'officeadvs',
      name: 'OfficeAdvs',
      component: () => import('@/views/Office/admin/officeadvs.vue'),
      meta: { index: 5, title: '广告图片', power: true, admin: true }
    }, {
      path: 'officeadvsadm',
      name: 'OfficeAdvsAdm',
      component: () => import('@/views/Office/admin/officeadvsadm.vue'),
      meta: { index: 6, title: '新增／修改广告图片', power: true, admin: true }
    }, {
      path: 'office',
      name: 'OfficeShare',
      component: () => import('@/views/Office/officeshare.vue'),
      meta: { index: 200, title: '', power: false, tabs: true }
    }]
  }]
},
// --移动门店--
{
  path: '/shop',
  name: 'ForMall',
  component: () => import('@/views/formall.vue'),
  children: [{
    path: '',
    name: 'ForGoodsHome',
    component: () => import('@/views/Shop/Home/forgoodshome.vue'),
    children: [{
      path: '',
      name: 'GoodsHome',
      component: () => import('@/views/Shop/Home/goodshome.vue'),
      meta: { index: 20, title: '', power: false, tabs: true }
    }, {
      path: 'goodslistcate',
      name: 'GoodsListCate',
      component: () => import('@/views/Shop/Home/goodslistcate.vue'),
      meta: { index: 21, title: '', power: false, tabs: true }
    }]
  }, {
    path: '',
    name: 'HotLine',
    component: () => import('@/views/Pages/hotline.vue')
  }, {
    path: 'map',
    name: 'GoodsMap',
    component: () => import('@/views/Pages/currentmap.vue'),
    meta: { index: 22, title: '', power: false, tabs: true }
  }, {
    path: 'user',
    name: 'ForUserCent',
    component: () => import('@/views/Shop/User/forusercent.vue'),
    children: [{
      path: '',
      name: 'UserCent',
      component: () => import('@/views/Shop/User/usercent.vue'),
      meta: { index: 23, title: '', power: true, tabs: true }
    }, {
      path: 'myorder',
      name: 'MyOrder',
      component: () => import('@/views/Shop/User/myorder.vue'),
      meta: { index: 24, title: '我的订单', power: true, tabs: true }
    }, {
      path: 'useraddress',
      name: 'UserAddress',
      component: () => import('@/views/Shop/User/useraddress.vue'),
      meta: { index: 24, title: '收货地址', power: true, tabs: true }
    }, {
      path: 'useraddressadm',
      name: 'UserAddressAdm',
      component: () => import('@/views/Shop/User/useraddressadm.vue'),
      meta: { index: 25, title: '收货地址', power: true, tabs: true }
    }]
  }]
},
// --云仓进货系统--
{
  path: '/cloudstorage',
  name: 'ForCloudStorage',
  component: () => import('@/views/forcloudstorage.vue'),
  meta: { power: true, shop: true },
  children: [{
    path: '',
    name: 'ForCloudHome',
    component: () => import('@/views/Cloudstorage/Home/forcloudhome.vue'),
    children: [{
      path: '',
      name: 'CloudHome',
      component: () => import('@/views/Cloudstorage/Home/cloudhome.vue'),
      meta: { index: 20, title: '', power: true, shop: true, tabs: true }
    }, {
      path: 'cloudpdtview',
      name: 'CloudPdtView',
      component: () => import('@/views/Cloudstorage/Home/cloudpdtview.vue'),
      meta: { index: 21, title: '', power: true, shop: true }
    }, {
      path: 'cloudcart',
      name: 'CloudCart',
      component: () => import('@/views/Cloudstorage/cloudcart.vue'),
      meta: { index: 22, title: '', power: true, shop: true }
    }]
  }, {
    path: '',
    name: 'HotLine',
    component: () => import('@/views/Pages/hotline.vue')
  }, {
    path: 'map',
    name: 'CloudMap',
    component: () => import('@/views/Pages/currentmap.vue'),
    meta: { index: 22, title: '', power: true, shop: true, tabs: true }
  }, {
    path: '',
    name: 'ForCloudUser',
    component: () => import('@/views/Cloudstorage/forclouduser.vue'),
    children: [{
      path: 'owncloudorder',
      name: 'OwnCloudOrder',
      component: () => import('@/views/Cloudstorage/Own/owncloudorder.vue'),
      meta: { index: 23, title: '云仓订购', power: true, shop: true, tabs: true }
    }, {
      path: 'usercloudorder',
      name: 'UserCloudOrder',
      component: () => import('@/views/Cloudstorage/User/usercloudorder.vue'),
      meta: { index: 23, title: '云仓订单', power: true, shop: true, tabs: true }
    }]
  }]
},
// --独立页面--
{
  path: '/goodsview',
  name: 'GoodsView',
  component: () => import('@/views/Shop/goodsview.vue'),
  meta: { index: 200, title: '', power: false }
}, {
  path: '/goodscart',
  name: 'GoodsCart',
  component: () => import('@/views/Shop/goodscart.vue'),
  meta: { index: 260, title: '', power: true }
},
// --过渡页面--
{
  path: '/transit',
  name: 'TransitPage',
  component: () => import('@/views/Pages/transit.vue'),
  meta: { index: 460, title: '', power: false }
},
// --登录注册--
{
  path: '/login',
  name: 'UserLogin',
  component: () => import('@/views/Pages/login.vue'),
  meta: { index: 500, title: '创优服务　永无止境', power: false }
},
// --位置导航--
{
  path: '/map',
  name: 'AddrMap',
  component: () => import('@/views/Pages/currentmap.vue'),
  meta: { index: 300, title: '位置导航', power: false }
},
// --平台支付系统--
{
  path: '/paysys',
  name: 'PaySys',
  component: () => import('@/views/Pay/paysys.vue'),
  meta: { index: 400, title: '创优服务　永无止境', power: false }
}]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: forRoutes
})

export default router
